<html ng-app>
<head>
	<script type="text/javascript" src="../angular/angular.js"></script>
	<script type="text/javascript" src="./js/cart-controller.js"></script>
	<title>Shopping Cart</title>
</head>
<body>

	<div ng-controller="CartController">
		<h1>Your Order:</h1>
		<div ng-repeat='item in items'>
			<span>{{item.title}}</span>
			<input ng-model='item.quantity'>
			<span>{{item.price | currency}}</span>
			<span>{{item.quantity * item.price | currency}}</span>
			<button ng-click='remove($index)'>Remove</button>
		</div>
		
		<div>Total: {{totalCart() | currency}}</div>
		<div>Discount: {{bill.discount | currency}}</div>
		<div>Subtotal: {{subtotal() | currency}}</div>
	</div>

</body>
</html>